from gen import generate_test_strings
from alg import longest_palindromic_substring

if __name__ == "__main__":
    test_strings = generate_test_strings(5, 20)
    for s in test_strings:
        print(f"原始字符串: {s}")
        print(f"最长回文子串: {longest_palindromic_substring(s)}")
        print("-" * 50)
